package com.zenagro.actions;

import javax.inject.*;

import org.openxava.actions.*;

public class ChangeFileAction extends ViewBaseAction implements ILoadFileAction {

	//Almacena el nombre de la propiedad que guarda el path a la imagen
	@Inject
	private String fileProperty;	
	
	public void execute() throws Exception {
		showDialog(); 
	}

	public String[] getNextControllers() {		
		return new String [] { "LoadFile" }; 
	}

	public String getCustomView() {		
		return "xava/editors/changeFile";
	}

	public boolean isLoadFile() {		
		return true;
	}

	public String getFileProperty() {
		return fileProperty;
	}

	public void setFileProperty(String fileProperty) {
		this.fileProperty = fileProperty;
	}

	

}
